import request from '@/utils/request'

// 查询储值金额记录列表
export function listStoredRecord(query) {
  return request({
    url: '/crm/storedRecord/list',
    method: 'get',
    params: query
  })
}

// 查询储值金额记录详细
export function getStoredRecord(id) {
  return request({
    url: '/crm/storedRecord/' + id,
    method: 'get'
  })
}

// 新增储值金额记录
export function addStoredRecord(data) {
  return request({
    url: '/crm/storedRecord',
    method: 'post',
    data: data
  })
}


// 删除储值金额记录
export function delStoredRecord(id) {
  return request({
    url: '/crm/storedRecord/' + id,
    method: 'delete'
  })
}
